<%@page import="com.reachol.objects.Users"%>
<%@page import="com.reachol.objects.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%

String activationCode = request.getParameter("activationCode");
int activationCodeControlFlag=0;
String userId=(String)session.getAttribute("userId");
User user = new User();
user.load(Long.parseLong(userId));
if(activationCode.equals(user.getActivationcode()))
{
	activationCodeControlFlag=1;
	user.setStep(3);
	user.store();
}
%>
<%=activationCodeControlFlag%>